/**
 * ForeignModel.java
 *
 * Copyright (c) 2009 prjmanager All Rights Reserved.
 *
 * This source file may not be copied, modified or redistributed,
 * in whole or in part, in any form or for any reason, without the express
 * written consent of prjmanager .
 **/

package ro.prjmanager.model;


import javax.persistence.*;

/**
 * This class from the domain model is mapping the table FOREIGN_MODEL
 * @author Viorel Tacliciu
 * @version 0.0.1
 */

@Table(name="FOREIGN_MODEL")
@Entity
public class  ForeignModel{

    //define attributes that maps all columns of the coresponding table
    //this attribute maps the primary key column ID
    private java.lang.Integer id;
    //this attribute maps an bidirectional association


    //this attribute maps the column DATABASE_NAME
    private  java.lang.String  databaseName;
    //this attribute maps the column JAVA_NAME
    private  java.lang.String  javaName;
    //end mapping columns

    //define getters and setters with coresponding ejb3 annotation, depending of the type
    //of the relation for the column

    /**
     * Mapping the primary key
     * @return - java.lang.Integer the primary key for this entity
     **/
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID")
    public  java.lang.Integer  getId(){
        return this.id;
    }

    /**
     * The setter for ID column
     * @param id -  an java.lang.Integer object
     **/
    public void setId( java.lang.Integer  id){
        this.id=id;
    }
    
    /**
     * This method gets the databaseName attribute
     * @return - an  java.lang.String  object
     **/
    @Column(name = "DATABASE_NAME")
    public  java.lang.String  getDatabaseName(){
        return this.databaseName;
    }

    /**
     * The setter for DATABASE_NAME column
     * @param databaseName -  an  java.lang.String  object
     **/
    public void setDatabaseName( java.lang.String  databaseName){
        this.databaseName=databaseName;
    }
    /**
     * This method gets the javaName attribute
     * @return - an  java.lang.String  object
     **/
    @Column(name = "JAVA_NAME")
    public  java.lang.String  getJavaName(){
        return this.javaName;
    }

    /**
     * The setter for JAVA_NAME column
     * @param javaName -  an  java.lang.String  object
     **/
    public void setJavaName( java.lang.String  javaName){
        this.javaName=javaName;
    }
}



